package com.taoye.thread;

public class Demo04 {
	public static void main(String[] args) {
		Runnable r = new Demo04Thread();
		Thread t1 = new Thread(r);
		Thread t2 = new Thread(r);
		Thread t3 = new Thread(r);
		t1.start();
		t2.start();
		t3.start();
	}
}

class Demo04Thread implements Runnable {
	private int conut = 6;
	
	@Override
	public void run() {
		while(conut-- > 0) {
			System.out.println(Thread.currentThread().getName() + "--count:"+conut);
		}
	}
}